package com.yuanfeng.business.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @ClassName ShopClassBindTmpController
 * @Description
 * @Author hyq
 * @Date 2023/8/30 13:55
 * @Version 1.0
 **/
@RestController
@RequestMapping("shop/classBindTmp")
public class ShopClassBindTmpController extends BaseController{


    /**
     * 查询商家申请类目列表
     */
    @PostMapping("/queryShopCat")
    public ResponseResult queryShopCat(@RequestBody  Map<String,Object> map) {
        ResponseResult result = shopClassBindTmpService.queryShopCat(map);
        return result;
    }

    /**
     * 查询商家申请类目详情
     */
    @PostMapping("/queryDetail")
    public ResponseResult queryshopcatdetail(@RequestBody Map<String,Object> map) {
        ResponseResult result = shopClassBindTmpService.queryShopCatDetail(map);
        return result;
    }


    /**
     * 审核商家申请类目详情
     */
    @PostMapping("/process")
    public ResponseResult process(@RequestBody Map<String,Object> map) {
        ResponseResult result = shopClassBindTmpService.process(map);
        return result;
    }

    /**
     * 查询商家申请经营分类列表
     */
    @PostMapping("/qureyApplyCat")
    public ResponseResult qureyApplycat(@RequestBody Map<String,Object> map) {
        ResponseResult result = shopClassBindTmpService.qureyApplycat(map);
        return result;
    }


    /**
     * 申请经营分类
     */
    @PostMapping("/applyCat")
    public ResponseResult applyCat(@RequestBody Map<String,Object> map) {
        ResponseResult result = shopClassBindTmpService.applyCat(map);
        return result;
    }

    /**
     * 删除申请的经营类目记录
     */
    @GetMapping("/deleteClassBindTmp")
    public ResponseResult deleteClassBindTmp(@RequestParam("catId") Integer catId) {
        return shopClassBindTmpService.deleteClassBindTmp(catId);
    }
}
